<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<h3>Get方式提交表单</h3>
  <form action="/servlet_demo/requestDemo3" method="get">
      用户：<input type="text" name="username"><br>
      密码：<input type="password" name="password"><br>
      爱好：
      <input type="checkbox" name="hobby" value="smoking"/> 抽烟
      <input type="checkbox" name="hobby" value="drink"/> 喝酒
      <input type="checkbox" name="hobby" value="perm"/> 烫头

      <input type="submit" value="get提交">
  </form>

<h3>Post方式提交表单</h3>
<form action="/servlet_demo/requestDemo3" method="post">
    用户：<input type="text" name="username"><br>
    密码：<input type="password" name="password"><br>
    爱好：
    <input type="checkbox" name="hobby" value="smoking"/> 抽烟
    <input type="checkbox" name="hobby" value="drink"/> 喝酒
    <input type="checkbox" name="hobby" value="perm"/> 烫头

    <input type="submit" value="Post提交">
</form>
</body>
</html>